package com.dragon.mmochat.model.map;

import java.util.ArrayList;
import java.util.List;

import com.dragon.mmochat.MmochatConstant;
import com.dragon.mmochat.model.role.MmochatTempNpc;

//地图守护神信息:MmochatMapGuiderService中使用
public class MmochatMapGuiderData {
	private List<MmochatTempNpc> npcList = new ArrayList<MmochatTempNpc>(); // 守护神NPC数据
	private List<Integer> roleList = new ArrayList<Integer>(); // 玩家roleId
	private int dao = 0;// 每个守护神玩家赢得的道行
	private long startTime = System.currentTimeMillis(); // 开始守护的时间点
	private boolean onDudy = true; // 是否还在守护中

	public List<MmochatTempNpc> getNpcList() {
		return npcList;
	}

	public void setNpcList(List<MmochatTempNpc> npcList) {
		this.npcList = npcList;
	}

	public List<Integer> getRoleList() {
		return roleList;
	}

	public void setRoleList(List<Integer> roleList) {
		this.roleList = roleList;
	}

	public int getDao() {
		return dao;
	}

	public void setDao(int dao) {
		this.dao = dao;
	}

	public void addDao(int add) {
		dao += add;
		dao = Math.min(add, MmochatConstant.maxDaoAwardOfMapGuiderPk);
		dao = Math.max(0, dao);
	}

	public long getStartTime() {
		return startTime;
	}

	public void setStartTime(long startTime) {
		this.startTime = startTime;
	}

	public boolean isOnDudy() {
		return onDudy;
	}

	public void setOnDudy(boolean onDudy) {
		this.onDudy = onDudy;
	}

}
